// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
Vue.use(ElementUI)

Vue.use(ViewUI);


var axios = require("axios")
axios.defaults.baseURL = "http://localhost:8083/project"

axios.interceptors.request.use(config => {
  config.headers['token'] = sessionStorage.getItem("user");
  return config
}, err => {
})
Vue.prototype.$axios = axios


Vue.config.productionTip = false


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
